package com.kritsana.dk.sendpostjson;

import java.text.SimpleDateFormat;
import java.util.Calendar;

import android.annotation.SuppressLint;
import android.util.Log;

public class DateTime {
	@SuppressLint("SimpleDateFormat")
	public String DateTime(){
		Calendar c = Calendar.getInstance();
        System.out.println("Current time => "+c.getTime());
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"+"T"+"HH:mm:ss");
        String formattedDate = df.format(c.getTime());
        Log.i("DateTime",formattedDate);
		return formattedDate;
	}
}
